package com.base.service;

import java.util.List;

import com.common.bean.Menuctrl;
import com.common.bean.Personneltorulelink;

public interface PermissionService {
//	public void addMenuctrl(Menuctrl menuctrl);
	
	public void addMenuctrl(long menuid,long ruleno);
	
//	public void addPersonneltorulelink(Personneltorulelink personneltorulelink);
	
	public void addPersonneltorulelink(long ruleno,String staffcode);
	
	public void removeMenuctrl(long menuid,long ruleno);
	
//	public void removeMenuctrl(Menuctrl menuctrl);
	
	public void removePersonneltorulelink(long ruleno,String staffcode);
	
//	public void removePersonneltorulelink(Personneltorulelink personneltorulelink);
	
	public Menuctrl findMenuctrl(long menuid,long ruleno);
	
	public Personneltorulelink findPersonneltorulelink(long ruleno,String staffcode);
	
	public List<Menuctrl> findAllMenuctrl();
	
	public List findMenuctrlByRules(long ruleno);
	
	public List<Personneltorulelink> findAllPersonneltorulelink();
	
	public List findPersonneltoruleByStaffcode(String staffcode);
	
}
